package com.hsy.swu

import com.hsy.swu.hsyutils.HsyViewModel
import com.hsy.swu.other.game2048.Game2048View

class HomeViewModel : HsyViewModel() {
    var game2048FragmentBlockArray: Array<Array<Game2048View.Game2048Block?>>? = null
    fun storeGameState(game2048View: Game2048View) {
        game2048FragmentBlockArray = game2048View.getBlockArray()
    }

    fun restoreGameState(game2048View: Game2048View) {
        game2048View.restoreGame(game2048FragmentBlockArray)
        game2048FragmentBlockArray = null
    }
}